package com.antdesignbackend.backend.news.news.mapper;

import com.antdesignbackend.backend.news.news.entity.News;
import com.antdesignbackend.backend.news.news.entity.entityVo.NewsVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;


/**
 * 消息推送
 * @author 不二
 * @email news
 * @date 2020-07-27 16:51:20
 */
@Component
public interface NewsMapper extends BaseMapper<News>{
    List<NewsVo> search(@Param(Constants.WRAPPER) QueryWrapper<NewsVo> wrapper, Page<NewsVo> page);
    Integer count(@Param(Constants.WRAPPER) QueryWrapper<NewsVo> wrapper);
}
